<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
   String comName = (String)request.getAttribute("comName");
%>
<html>

<%@ include file="../bui_header.jsp" %>

<body>
   <div class="demo-content">
    <div class="row" style="width:100%">
      <div class="span8" style="width:100%">
        <div id="tab" style="width:100%"></div>
        <div id="panel" class="" style="width:100%,padding:10px;">
         	<div></div>
          	<div></div>
          	<div></div>
          	<div></div>
        </div>
      </div> 
    </div>
    </div>
    
    
	<script type="text/javascript">
	
	  BUI.use(['bui/tab','bui/mask'],function(Tab){
		  var comName = '<%=comName %>';
	      var tab = new Tab.TabPanel({
	        render : '#tab',
	        //height: 500,
	        elCls : 'nav-tabs',
	        panelContainer : '#panel',//如果内部有容器，那么会跟标签项一一对应，如果没有会自动生成
	        //selectedEvent : 'mouseenter',//默认为click,可以更改事件
	        autoRender: true,
	        children:[
	          {title:'基础资料',value:'1',selected : true,
	        	  loader : {
	        		  	url : '<%=contextPath %>/report/zmgs/basePage.do?comName='+comName,
	        		  	autoLoad : true
	        		  }
	          },
	          {title:'业务运营情况',value:'2',loader : {
	        	  url : '<%=contextPath %>/report/zmgs/bizPage.do?comName='+comName
	             // autoLoad : true
	        	  }
	          },
	          
	          {title:'评价信息',value:'3',loader : {
	        	  url : '<%=contextPath %>/report/common/mtpjPage.do?comName='+comName
	        	  	//autoLoad : true
	        	  }
	          },
	          
	          {title:'获奖评价',value:'4',loader : {
	        	  url : '<%=contextPath %>/report/common/hjxxPage.do?comName='+comName
	        	  	//autoLoad : true
	        	  }
	          }
	        ]
	      });
	      //tab.setSelected(tab.getItemAt(0));
	
	      //更改选中的标题
	      $('#J_Btn').on('click',function(){
	        var txt = $('#J_Txt').val();
	        if(txt){
	          var item = tab.getSelected();
	          item.set('title',txt);
	        }
	      })
	    });
	   
	</script>
		
</body>
</html>